package model.load
{
	import flash.net.URLLoaderDataFormat;
	
	public class StringLoadMessage extends AbsLoadMessage
	{
		private var backFunction:Function;
		
		public function StringLoadMessage(backFunction:Function)
		{
			this.backFunction = backFunction;
			_dataFormat = URLLoaderDataFormat.TEXT;
		}
		
		override public function back(...args) : void
		{
			backFunction(args[0]);	
		}
	}
}